import WQRequest from "@/service";
export function getMaintenanceList(data) {
    return WQRequest.post({
        url: "ordermaintenanceordermanagement/getmaintenanceordermanagementpage",
        data
    });
}
export function getAreaPosition(params) {
    return WQRequest.get({
        url: "equipmentmanagement/getequipmentarealocationlist",
        params
    });
}
export function getAreaDevice(data) {
    return WQRequest.post({
        url: "basicssysuser/getEquipmentObject",
        data
    });
}
export function getDevice(data) {
    return WQRequest.post({
        url: "ordermaintenanceorderdetailmanagement/getinspectionitemlisttree",
        data
    });
}
export function setMaintenance(data) {
    return WQRequest.post({
        url: "updataDetailRepairAsync/req",
        data
    });
}
export function getDpt() {
    return WQRequest.get({
        url: "basicssysuser/getDept"
    });
}

export function getFlow(data) {
    return WQRequest.post({
        url: "ordermaintenanceorderflowmanagement/getlistasyncbyorderid",
        data
    });
}
//预保存
export function preSaveMaintenance(data) {
    return WQRequest.post({
        url: "ordermaintenanceorderdetailmanagement/saveprestoremaintenanceinfo",
        data
    });
}
//预保存获取
export function preGetMaintenance(orderId) {
    return WQRequest.get({
        url: `getPrestoreMaintrnanceInfo/${orderId}`
    });
}
